package com.cskaoyan.model.admin.vo;

import lombok.Data;

import java.util.List;

/**
 * @author hanshuai
 * @version 1.0
 * @description @TODO
 * @date 2021/11/30 16:20
 */
@Data
public class AdminRegionVo {
    Integer code;
    Integer id;
    String name;
    Byte type;
    List<AdminRegion2Vo> children;

    public AdminRegionVo(Integer code, Integer id, String name, Byte type, List<AdminRegion2Vo> children) {
        this.code = code;
        this.id = id;
        this.name = name;
        this.type = type;
        this.children = children;
    }

    public AdminRegionVo() {
    }

    @Data
    public static class AdminRegion2Vo{
        Integer code;
        Integer id;
        String name;
        Byte type;
        Integer pid;
        List<AdminRegion3Vo> children;

        public AdminRegion2Vo(Integer code, Integer id, String name, Byte type, Integer pid, List<AdminRegion3Vo> children) {
            this.code = code;
            this.id = id;
            this.name = name;
            this.type = type;
            this.pid = pid;
            this.children = children;
        }

        public AdminRegion2Vo() {
        }
    }
@Data
    public static class AdminRegion3Vo{
        Integer code;
        Integer pid;
        Integer id;
        String name;
        Byte type;

    public AdminRegion3Vo(Integer code, Integer pid, Integer id, String name, Byte type) {
        this.code = code;
        this.pid = pid;
        this.id = id;
        this.name = name;
        this.type = type;
    }

    public AdminRegion3Vo() {
    }
}
}
